package com.application;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.manager.ChatManager;
import com.selector.ModelSelector;
import com.service.ChatService;

public class ChatApplication {
    public static void main(String[] args) {
        // 启动 TTSAudio 进程
        Thread ttsThread = new Thread(() -> {
            TTSAudio ttsAudio = new TTSAudio();
        });
        ttsThread.setDaemon(true);
        ttsThread.start();

        ModelSelector modelSelector = new ModelSelector();
        ChatManager chatManager = new ChatManager(new ChatService(), modelSelector, new Gson());
        chatManager.run();
    }
}